package com.zhou.listener.library.listener;

import com.zhou.listener.library.vh.BaseDownloadViewHolder;

import java.lang.ref.SoftReference;

public abstract class BaseDownloadListener<K,V extends BaseDownloadViewHolder> implements IFileDownloaderDownloadListener<K>{
    protected SoftReference<V> mVH;
    protected K mBean;
    public BaseDownloadListener(V vh){
        this.mVH = new SoftReference<>(vh);
    }

    @Override
    public K getBean() {
        return mBean;
    }

    @Override
    public void setBean(K k) {
        mBean = k;
    }
}
